export interface MapType<T> {
  [index: string]: T;
}
export interface IResponse<T = any> {
  code: number;
  message: string;
  error: number | null;
  data: T;
}

export interface IPage<T = any> {
  list: T[];
  total: number;
}

export type IPageResponse<T = any> = IResponse<IPage<T>>;

export interface IPageObject {
  page: number;
  pageCount: number;
  total: number;
  pageSize: number;
}

export interface IPageBaseParams {
  page: number;
  pageSize: number;
}

export enum ResponseCode {
  NO = -1,
  YES = 0,
}
